package com.iflytek.iot.hadoop.dfs.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author yu 2019/11/28.
 */
@ConfigurationProperties("hadoop.dfs")
public class HdfsProperties {

    /**
     * hdfs使用用户
     */
    private String user;

    /**
     * hdfs集群服务地址
     */
    private String serverUrl;

    /**
     * 文件夹
     */
    private String dirPath;

    /**
     * 文件地址
     */
    private String filePath;

    /**
     * 文件下载地址
     */
    private String downloadUrl;

    /**
     * 集群启用kerberos认证
     */
    private Boolean kerberosEnable;

    /**
     * kerberos realm名称
     */
    private String kerberosRealm;

    /**
     * kerboros key path
     */
    private String kerberosKeyPath;


    /**
     * kerberos用户名
     */
    private String kerberosUser;

    /**
     * kerberos principal pattern
     */
    private String kerborosPrincipalPattern;

    /**
     * kdc server
     */
    private String kdcServer;


    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getServerUrl() {
        return serverUrl;
    }

    public void setServerUrl(String serverUrl) {
        this.serverUrl = serverUrl;
    }

    public String getDirPath() {
        return dirPath;
    }

    public void setDirPath(String dirPath) {
        this.dirPath = dirPath;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getDownloadUrl() {
        return downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }

    public Boolean getKerberosEnable() {
        return kerberosEnable;
    }

    public void setKerberosEnable(Boolean kerberosEnable) {
        this.kerberosEnable = kerberosEnable;
    }

    public String getKerberosRealm() {
        return kerberosRealm;
    }

    public void setKerberosRealm(String kerberosRealm) {
        this.kerberosRealm = kerberosRealm;
    }

    public String getKerberosKeyPath() {
        return kerberosKeyPath;
    }

    public void setKerberosKeyPath(String kerberosKeyPath) {
        this.kerberosKeyPath = kerberosKeyPath;
    }

    public String getKerberosUser() {
        return kerberosUser;
    }

    public void setKerberosUser(String kerberosUser) {
        this.kerberosUser = kerberosUser;
    }

    public String getKerborosPrincipalPattern() {
        return kerborosPrincipalPattern;
    }

    public void setKerborosPrincipalPattern(String kerborosPrincipalPattern) {
        this.kerborosPrincipalPattern = kerborosPrincipalPattern;
    }

    public String getKdcServer() {
        return kdcServer;
    }

    public void setKdcServer(String kdcServer) {
        this.kdcServer = kdcServer;
    }
}


